package com.feng.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.common.utils.PageUtils;
import com.feng.common.vo.GiteeUser;
import com.feng.common.vo.SocialUser;
import com.feng.gulimall.member.entity.MemberEntity;
import com.feng.gulimall.member.vo.MemberLoginVo;
import com.feng.gulimall.member.vo.MemberRegisterVo;

import java.util.Map;

/**
 * 会员
 *
 * @author fengge
 * @email sunlightcs@gmail.com
 * @date 2022-09-25 22:54:33
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 注册
     * @param vo
     */
    void register(MemberRegisterVo vo);

    /**
     * 账号密码登录
     * @param memberLoginVo
     * @return
     */
    MemberEntity login(MemberLoginVo memberLoginVo);

    /**
     * 社交登录
     * @param giteeUser
     * @return
     */
    MemberEntity login(GiteeUser giteeUser);
}

